package service;


import dao.OrderMapper;
import pojo.Orders;

import java.util.List;

public class OrderServiceImpl implements OrderService {

//    调用dao层的操作，设置一个set接口，方便Spring管理
    private OrderMapper orderMapper;

    public void setOrderMapper(OrderMapper orderMapper) {
        this.orderMapper = orderMapper;
    }

    public List<Orders> queryAllBook() {
        return orderMapper.queryAllBook();
    }
}
